const context = require.context("./modules", true, /\.js$/);
const modules = context.keys().reduce((total, path) => {
  Object.assign(total, context(path).default);
  return total;
}, {});

export default modules;
